﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/ShenBaoYBQY.master"
    AutoEventWireup="true" CodeFile="1-10.aspx.cs" Inherits="ybqy_1_10" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">
    <script language="javascript" type="text/javascript" src="../kongjian/My97DatePicker/WdatePicker.js"></script>
    <script language="javascript" type="text/javascript" src="../kongjian/Lodop/LodopFuncs.js"></script>
    <script src="../kongjian/myjs/myjs.js" type="text/javascript"></script>
    <span style="font-size: x-large">
        表1-10上年工业企业污染治理项目建设情况
    </span>

    <table border="1px" cellpadding="0" cellspacing="0">
        <tr> 
            <td style="width: 100px" rowspan="4"> 
                1.污染治理项目名称
            </td>
            <td style="width: 65px" rowspan="4"> 
                2.治理类型
            </td>
            <td style="width: 64px" rowspan="4"> 
                3.开工年月
            </td>
            <td style="width: 68px" rowspan="4">
                4.建成投产年月
            </td>
            <td style="width: 56px" rowspan="4">
                5.计划总投资（万元）
            </td>
            <td style="width: 62px" rowspan="4">
                6.至上年底累计完成投资（万元）
            </td>
            <td colspan="7" style="text-align: center">
                上年完成投资及资金来源(万元)
            </td>
            <td style="width: 68px" class="style2" rowspan="4">
                14.上年竣工项目设计及新增处理能力
            </td>
        </tr>
        <tr>
            <td style="width: 63px" rowspan="3">
                7.合计
            </td>
            <td style="width: 61px" rowspan="3">
                8.国家预算内资金
            </td>
            <td style="width: 59px" rowspan="3">
                9.环境保护专项资金
            </td>
            <td colspan="4" style="text-align: center">
                其他资金
            </td>
        </tr>
        <tr>
            <td style="width: 64px" rowspan="2">
                10.合计
            </td>
            <td colspan="3" style="text-align: center">
                其中
            </td>
        </tr>
        <tr>
            <td style="width: 61px">
                11.国内贷款
            </td>
            <td style="width: 60px">
                12.利用外资
            </td>
            <td style="width: 54px">
                13.企业自筹
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:TextBox  ID="PROJECT_NAME1" runat="server" Width="98px" onclick="gettishi('10111001')"></asp:TextBox>
            </td>
            <td style="width: 65px">
                <asp:DropDownList ID="MANAGE_TYPE1" runat="server" Height="19px" Width="63px" DataSourceID="SqlDataSource1"
                    DataTextField="NAME" DataValueField="CODE">
                </asp:DropDownList>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="BEGIN_DATE1" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 68px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="USE_DATE1" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 56px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="PLAN_MONEY1" runat="server" Width="63px" onclick="gettishi('10111005')"></asp:TextBox>
            </td>
            <td style="width: 62px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SUM_YEARMONEY1" runat="server" Width="63px" onclick="gettishi('10111006')"></asp:TextBox>
            </td>
            <td style="width: 63px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ALL_MONEY1" runat="server" Width="63px" onclick="gettishi('10111007')"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="YUS_MONEY1" runat="server" Width="63px" onclick="gettishi('10111008')"></asp:TextBox>
            </td>
            <td style="width: 59px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ENV_MONEY1" runat="server" Width="63px" onclick="gettishi('10111009')"></asp:TextBox>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="OTHER_SUMMONEY1" runat="server" Width="63px"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="LEND_MONEY1" runat="server" Width="63px" onclick="gettishi('10111011')"></asp:TextBox>
            </td>
            <td style="width: 60px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="FOREIN_MONEY1" runat="server" Width="63px" onclick="gettishi('10111012')"></asp:TextBox>
            </td>
            <td style="width: 54px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SELF_MONEY1" runat="server" Width="63px" onclick="gettishi('10111013')"></asp:TextBox>
            </td>
            <td style="width: 68px" class="style2">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="DESIGN_ABILITY1" runat="server" Width="63px" onclick="gettishi('10111014')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:TextBox  ID="PROJECT_NAME2" runat="server" Width="98px" onclick="gettishi('10111001')"></asp:TextBox>
            </td>
            <td style="width: 65px">
                <asp:DropDownList ID="MANAGE_TYPE2" runat="server" Height="19px" Width="63px" DataSourceID="SqlDataSource1"
                    DataTextField="NAME" DataValueField="CODE">
                </asp:DropDownList>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="BEGIN_DATE2" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 68px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="USE_DATE2" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 56px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="PLAN_MONEY2" runat="server" Width="63px" onclick="gettishi('10111005')"></asp:TextBox>
            </td>
            <td style="width: 62px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SUM_YEARMONEY2" runat="server" Width="63px" onclick="gettishi('10111006')"></asp:TextBox>
            </td>
            <td style="width: 63px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ALL_MONEY2" runat="server" Width="63px" onclick="gettishi('10111007')"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="YUS_MONEY2" runat="server" Width="63px" onclick="gettishi('10111008')"></asp:TextBox>
            </td>
            <td style="width: 59px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ENV_MONEY2" runat="server" Width="63px" onclick="gettishi('10111009')"></asp:TextBox>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="OTHER_SUMMONEY2" runat="server" Width="63px"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="LEND_MONEY2" runat="server" Width="63px" onclick="gettishi('10111011')"></asp:TextBox>
            </td>
            <td style="width: 60px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="FOREIN_MONEY2" runat="server" Width="63px" onclick="gettishi('10111012')"></asp:TextBox>
            </td>
            <td style="width: 54px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SELF_MONEY2" runat="server" Width="63px" onclick="gettishi('10111013')"></asp:TextBox>
            </td>
            <td style="width: 68px" class="style2">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="DESIGN_ABILITY2" runat="server" Width="63px" onclick="gettishi('10111014')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:TextBox  ID="PROJECT_NAME3" runat="server" Width="98px" onclick="gettishi('10111001')"></asp:TextBox>
            </td>
            <td style="width: 65px">
                <asp:DropDownList ID="MANAGE_TYPE3" runat="server" Height="19px" Width="63px" DataSourceID="SqlDataSource1"
                    DataTextField="NAME" DataValueField="CODE">
                </asp:DropDownList>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="BEGIN_DATE3" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 68px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="USE_DATE3" runat="server" Width="63px" onclick="WdatePicker()"></asp:TextBox>
            </td>
            <td style="width: 56px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="PLAN_MONEY3" runat="server" Width="63px" onclick="gettishi('10111005')"></asp:TextBox>
            </td>
            <td style="width: 62px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SUM_YEARMONEY3" runat="server" Width="63px" onclick="gettishi('10111006')"></asp:TextBox>
            </td>
            <td style="width: 63px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ALL_MONEY3" runat="server" Width="63px" onclick="gettishi('10111007')"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="YUS_MONEY3" runat="server" Width="63px" onclick="gettishi('10111008')"></asp:TextBox>
            </td>
            <td style="width: 59px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="ENV_MONEY3" runat="server" Width="63px" onclick="gettishi('10111009')"></asp:TextBox>
            </td>
            <td style="width: 64px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="OTHER_SUMMONEY3" runat="server" Width="63px"></asp:TextBox>
            </td>
            <td style="width: 61px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="LEND_MONEY3" runat="server" Width="63px" onclick="gettishi('10111011')"></asp:TextBox>
            </td>
            <td style="width: 60px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="FOREIN_MONEY3" runat="server" Width="63px" onclick="gettishi('10111012')"></asp:TextBox>
            </td>
            <td style="width: 54px">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="SELF_MONEY3" runat="server" Width="63px" onclick="gettishi('10111013')"></asp:TextBox>
            </td>
            <td style="width: 68px" class="style2">
                <asp:TextBox  onchange="sumMT()" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false" ID="DESIGN_ABILITY3" runat="server" Width="63px" onclick="gettishi('10111014')"></asp:TextBox>
            </td>
        </tr>
    </table>
    <table class="style1">
        <tr>
            <td style="width: 503px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringole %>"
                    ProviderName="<%$ ConnectionStrings:ConnectionStringole.ProviderName %>" SelectCommand="SELECT * FROM [a01110_f]">
                </asp:SqlDataSource>
            </td>
            <td style="width: 137px">
                <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />
            </td>
            <td>
                <input id="Button5" onclick="PrintOneURL('print/1-10.aspx')" type="button" 
                    value="打印本页" />&nbsp;</td>
        </tr>
    </table>
    <br /><br /><br /><br />
    <div class="myTiShiKuang">
    <table>
        <tr>
            <td style="width: 456px">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label5" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea1" name="S1" rows="3" style="width: 430px; height: 45px" 
                    readonly="readonly"></textarea>
            </td>
            <td>
                <textarea id="TextArea2" name="S2" style="width: 430px; height: 45px; font-size: xx-large;
                    color: #FF0000; font-weight: 700;" cols="20"></textarea>
            </td>
        </tr>
        <tr>
            <td style="width: 456px">
                <textarea id="TextArea3" name="S3" rows="3" style="width: 430px; height: 45px" 
                    cols="20" readonly="readonly"></textarea>
            </td>
            <td>
                <asp:TextBox  ID="TextBox100" runat="server" Height="45px" TextMode="MultiLine" 
                    Width="430px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 456px; height: 144px;">
            </td>
            <td style="height: 144px">
            </td>
        </tr>
    </table>
    </div>
    <input id="Text100" style="visibility: hidden" type="text" value="<%=DisplayStr()%>"
        disabled="disabled" />
        <script type="text/javascript"> 
              window.onload = function sumMT1() { sumMT(); }
     
         function sumMT() {
            document.getElementById("<%=this.ALL_MONEY1.ClientID%>").value = (Number(document.getElementById("<%=this.YUS_MONEY1.ClientID%>").value) + Number(document.getElementById("<%=this.ENV_MONEY1.ClientID%>").value)+ Number(document.getElementById("<%=this.OTHER_SUMMONEY1.ClientID%>").value));
            document.getElementById("<%=this.ALL_MONEY2.ClientID%>").value = Number(document.getElementById("<%=this.YUS_MONEY2.ClientID%>").value) + Number(document.getElementById("<%=this.ENV_MONEY2.ClientID%>").value)+ Number(document.getElementById("<%=this.OTHER_SUMMONEY2.ClientID%>").value);
            document.getElementById("<%=this.ALL_MONEY3.ClientID%>").value = Number(document.getElementById("<%=this.YUS_MONEY3.ClientID%>").value) + Number(document.getElementById("<%=this.ENV_MONEY3.ClientID%>").value)+ Number(document.getElementById("<%=this.OTHER_SUMMONEY3.ClientID%>").value);

            if (Number(document.getElementById("<%=this.ALL_MONEY1.ClientID%>").value) > Number(document.getElementById("<%=this.SUM_YEARMONEY1.ClientID%>").value)) {
                alert("6.至上年底累计完成投资不能小于上年完成投资及资金来源合计");
            }
            if (Number(document.getElementById("<%=this.ALL_MONEY2.ClientID%>").value) > Number(document.getElementById("<%=this.SUM_YEARMONEY2.ClientID%>").value)) {
                alert("6.至上年底累计完成投资不能小于上年完成投资及资金来源合计");
            }
            if (Number(document.getElementById("<%=this.ALL_MONEY3.ClientID%>").value) > Number(document.getElementById("<%=this.SUM_YEARMONEY3.ClientID%>").value)) {
                alert("6.至上年底累计完成投资不能小于上年完成投资及资金来源合计");
            }
            
            var var10=(Number(document.getElementById("<%=this.LEND_MONEY1.ClientID%>").value)+Number(document.getElementById("<%=this.FOREIN_MONEY1.ClientID%>").value)+Number(document.getElementById("<%=this.SELF_MONEY1.ClientID%>").value));
            var var11=Number(document.getElementById("<%=this.OTHER_SUMMONEY1.ClientID%>").value);
            if ( var10> var11) {
                alert("其他资金10、合计不能小于11、12、13的合计");
            }
            var var10 = (Number(document.getElementById("<%=this.LEND_MONEY2.ClientID%>").value) + Number(document.getElementById("<%=this.FOREIN_MONEY2.ClientID%>").value) + Number(document.getElementById("<%=this.SELF_MONEY2.ClientID%>").value));
            var var11 = Number(document.getElementById("<%=this.OTHER_SUMMONEY2.ClientID%>").value);
            if (var10 > var11) {
                alert("其他资金10、合计不能小于11、12、13的合计");
            }
            var var10 = (Number(document.getElementById("<%=this.LEND_MONEY3.ClientID%>").value) + Number(document.getElementById("<%=this.FOREIN_MONEY3.ClientID%>").value) + Number(document.getElementById("<%=this.SELF_MONEY3.ClientID%>").value));
            var var11 = Number(document.getElementById("<%=this.OTHER_SUMMONEY3.ClientID%>").value);
            if (var10 > var11) {
                alert("其他资金10、合计不能小于11、12、13的合计");
            }
            

        }
</script>
    <script type="text/javascript">
 



        function gettishi(str) {
            var str2 = document.getElementById("Text100").value;
            str2.replace(/\'/g, "\"");
            //取得文本框的值
            var arr = eval(str2);
            document.getElementById("TextArea1").value = '';
            document.getElementById("TextArea2").value = '';
            document.getElementById("TextArea3").value = '';


            for (var i = 0; i < arr.length; i++) {
                if (arr[i].tishiid == str) {
                    if (arr[i].ti1.length > 0) {
                        document.getElementById("TextArea1").value = arr[i].idmingcheng + "填写说明:  " + arr[i].ti1;
                    }
                    if (arr[i].ti2.length > 0) {
                        document.getElementById("TextArea2").value = arr[i].ti2;
                    }
                    if (arr[i].ti3.length > 0) {
                        document.getElementById("TextArea3").value = arr[i].idmingcheng + "填写例子:  " + arr[i].ti3;
                    }
                }
            }



        }
    </script>

</asp:Content>
